01. oktober 2006 - 12:37Der er
3 kommentarer og 1 løsning
Hvad er hurtigst / bedst
Jeg bruger meget at skrive ting (f.eks. filtre) i registry eller .INI filer, men nu er jeg lidt i tvivl om hvad der er hurtigst/bedst.
At skrive det i en .INI fil har den store fordel at hvis der er noget der går helt i kage, så er det bare at slette den og så begynde forfra. Det kan man rent faktisk forklare en bruger i telefonen hvordan man gør. At rette i registry er ikke noget jeg normalt vil have en bruger til at gøre :-)
Personally I use the registry, and I dont worry about what is fastest, because you shouldnt need to access it that much that you would notice any perfomance issues. Also, I dont expect users to have to make any alterations so that isnt a problem either. But I see your point if you think its necessary for users to have to delete an INI file.
But then if you made your program fool proof then you wouldnt expect any problems which would require deleing it :o)
fool proof ? If you have made a fool proof application then I am sure that there is something you have missed :-)
I thin I will stick to the solution I have at the moment where I am using a combination of the 2. I use the registry for storing som licensing issues as 'normal' users won't mess with that (I use a license file for all my 'commercial' applications allowing me to control what the users can access)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.