mark007 Posted February 3, 2006 Posted February 3, 2006 1. In asp.net you can store data in the cache safe in the knowledge that if memory is a problem some of it will be dumped. I am creating a dll that will serve as an Excel addin. Within it there will be times at which an extremely large number of calculations will be carried out. Alot of the intermediate results will be the same though so I wish to cache them under a string id of the calculation arguments. I could obviously do this using a hashtable easily enough however I was wondering if there is a built in cache that will manage situations when memory runs low as per in asp.net. 2. If anyone can think of a better=faster way of storing intermediate results other than storing under a key equal to a concatenated argument list I would appreciate it. 3. Finally how many concatenations are required before using a stringbuilder becomes faster? Cheers! :) Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Cags Posted February 3, 2006 Posted February 3, 2006 Theres a pretty good article on the performance of StringBuilder at the following link. Obviously this data isn't official and could be considered nonsense, but the information is backed up with a fair amount of explanation. http://www.heikniemi.net/hc/archives/000124.html Quote Anybody looking for a graduate programmer (Midlands, England)?
mark007 Posted February 3, 2006 Author Posted February 3, 2006 Thanks - that takes care of part3 quite nicely! Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.