27.07.2012, 00:31
Alright, well I made a timing comparsion with sii and here are the results:
Writing 100 strings into a blank file:
mFiles: 4 (ms)
sii: 5 (ms)
Reading 100 strings:
mFiles: 32 (ms)
sii: 7 (ms)
Writing (replacing) 100 strings into a file:
mFiles: 53 (ms)
sii: 6 (ms)
As you can see sii is slightly faster in some ways, but both systems work in a different way!
sii is based on cache while mFiles is directly writing into a file (well, not exactly directly)
Only one downside which I see with sii is that you are limited to an amount of keys (255 by default).
Cache system takes more memory (correct me if im wrong) which means; increasing the amount of keys takes more memory and also takes longer to write!
Writing 100 strings into a blank file:
mFiles: 4 (ms)
sii: 5 (ms)
Reading 100 strings:
mFiles: 32 (ms)
sii: 7 (ms)
Writing (replacing) 100 strings into a file:
mFiles: 53 (ms)
sii: 6 (ms)
As you can see sii is slightly faster in some ways, but both systems work in a different way!
sii is based on cache while mFiles is directly writing into a file (well, not exactly directly)
Only one downside which I see with sii is that you are limited to an amount of keys (255 by default).
Cache system takes more memory (correct me if im wrong) which means; increasing the amount of keys takes more memory and also takes longer to write!