Last post Jan 12, 2007 04:19 PM by JeffSpicolie
Jan 12, 2007 01:42 PM|JeffSpicolie|LINK
I have written a handy dandy cheap bar graph image creator control that accepts the usual suspects for a bar graph image...
I only want to create a new bar graph image if the image doesn't already exist... Simple, use the parameters passed in as the file name right???
Right, but wrong.... Since there could be many bar values and colors, the file name could be to large...
Anyone have any ideas on how I could create a deterministic (meaning always the same if the same values are passed into the control?
The only thing I can think of is to encrypt (sort of) a systematically concatenated string of all the properties of the bar chart, but that seems to be way too expensive. I don't care what the image name ends up being, but I need to programatically be able
to tell if the values passed into the control have been before by checking the IO to see if that file already exists.
Jan 12, 2007 04:05 PM|JeffSpicolie|LINK
MD5 quickly came to mind, but it shouldn't have since the performance is poor...
I don't need encryption. Then CRC32 came to mind, hashing the string yet I have no experience in this.
I guess I have crossed into another forum now, sorry...
Does anyone know of a fast method for hashing (or the like) a long string deterministically into a smaller one?
Jan 12, 2007 04:19 PM|JeffSpicolie|LINK