Autor Beitrag
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 17.04.04 09:09 
Hallo,

hat jemand Erfahrung damit, welche Methode, bei der man seinen eigenen Fortschrittsbalken nutzen kann, die schnellste ist?
Ich werfe mal folgende Methoden in die Runde:
  • CopyFileEx
  • Oldschool: BlockRead/BlockWrite
  • Streams
Wenn jemand schnellere Methoden kennt, ich bin für alles offen!

Gruß und Dank,
Hape

Gerade gemerkt: Gehört in Dateizugriff, sorry!

Moderiert von user profile iconPeter Lustig (10:37, 17.04.2004): Topic verschoben

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.


Zuletzt bearbeitet von wulfskin am Sa 17.04.04 14:42, insgesamt 1-mal bearbeitet
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 17.04.04 12:48 
Und ich werfe noch ein Suche in: Delphi-Forum, Delphi-Library SHFILEOPERATION mit in die Runde. ;)
wulfskin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 17.04.04 14:42 
Luckie hat folgendes geschrieben:
Und ich werfe noch ein Suche in: Delphi-Forum, Delphi-Library SHFILEOPERATION mit in die Runde. ;)
Ich wusste das das kommen würde. Leider bringt mir die Methode nix, da ich meine eigene Fortschrittsanzeige anzeigen möchte, da das ganze in mein Programm integriert ist.

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 17.04.04 15:48 
Zitat:
hat jemand Erfahrung damit, welche Methode, bei der man seinen eigenen Fortschrittsbalken nutzen kann, die schnellste ist?


Probiere doch einfach mal alle aus und miss die Zeit.
wulfskin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 17.04.04 17:06 
Ich frage ja deshalb, um esnicht ausprobieren zu müssen.
Aber es sieht so aus, dass man da wieder selber ran muss ;)!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 17.04.04 20:08 
Ausprobiert hab' ich's nicht, aber ich vermute mal, daß CopyFileEx die schnellste Variante ist, ganz einfach weil man Windows das ganze Buffering usw überlässt.

_________________
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
MAlsleben
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 303

W2k,WinXP
D3 - DXE3 Enterprise
BeitragVerfasst: Mo 19.04.04 10:09 
Hi,

wir hatten mal einen Test gemacht, da ware BlockRead/BlockWrite um ca. 30% schneller als copyfile. Allerdings ist die Frage, ob sich der Mehraufwand
beim Programmieren lohnt.

Gruß Micha.

_________________
Viele Wege führen nach Rom.
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 19.04.04 11:18 
MAlsleben hat folgendes geschrieben:
wir hatten mal einen Test gemacht, da ware BlockRead/BlockWrite um ca. 30% schneller als copyfile. Allerdings ist die Frage, ob sich der Mehraufwand
beim Programmieren lohnt.


ich denke ein guter zwischenweg zwischen speed und programmieraufwand ist der filestream

_________________
Patrick
im zweifelsfall immer das richtige tun!!!