Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 15.07.03 18:55 
Hi

In einem Prog von mir werden in regelmäßigem Abstand Daten aus einer Ini-Datei gelesen. Das können machnmal bis zu 600 Zeilen sein, was den CPU immer recht schön belastet. Wie kann ich das reduzieren?

Moderiert von user profile icontommie-lie: Topic verschoben & Titel präzisiert
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 15.07.03 19:15 
TMemIniFile benutzen, falls du dsa noch nicht machst.

Die Klasse cached den Inhalt nämlich im RAM, wodurch der Zugriff nicht unwesentlich beschleunigt wird.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 15.07.03 19:20 
Einfach aus IniFile RemIniFile machen?
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 15.07.03 21:16 
Onz hat folgendes geschrieben:
Einfach aus IniFile RemIniFile machen?

MemIniFile, ja *g*
Aber wenn du auch was schreibst, musst du vor dem Free MemIniFile.UpdateFile aufrufen, damit der Buffer aus dem Speicher in die Datei wandert.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert