Jump to content
Sign in to follow this  
f0dder

Low-fragmented image file creation

Recommended Posts

Hey, when using "Mode: build" to create a .iso file, the resulting file is often pretty fragmented. If you, before starting the build, use SetFilePointer to move to the calculated final ISO size, then SetEndOfFile and finally SetFilePointer back to beginning of the file, then file fragmentation will be as small as possible.

 

This is almost zero overhead on NTFS filesystems, but takes quite a while on FAT.

Share this post


Link to post
Share on other sites

Cool, I'll do that for the next version then.

 

I hadn't seen that 'SetEndOfFile' function before now but I knew this kinda of thing was possible because lots of programs seem to allocate the full size needed for a file before actually writing anything.

 

Perhaps I'll limit it to just doing it on NTFS though if there's a lot of overhead on FAT.

 

EDIT: Done it now. Thanks again.

Share this post


Link to post
Share on other sites

Yeah, I've noticed this as well, but never really thought about it. This will be good for my data backups (or authoring and burning a dvd - almost never do this though).

Share this post


Link to post
Share on other sites

lol I can't say as I check my drive's fragmentation level that closely, but I saw it for the good suggestion it was ;)

Share this post


Link to post
Share on other sites

I defragged once! :D

 

Regards

Share this post


Link to post
Share on other sites

I defrag every few weeks. I don't like my files in pieces. :mellow:

Share this post


Link to post
Share on other sites

It's when all the pieces of the file are rearranged so that they are all in order one after the other. Fragging is when there is not enough room for the file, so it splits it up into fragments to store it. Hence disk speed is slower because the OS has to search for the other pieces of the file.

Share this post


Link to post
Share on other sites

What? Somthing wrong with my explanation? Whats going on?

Share this post


Link to post
Share on other sites

i think they call it sarrcarrsem in certain parts of europe, other people may say they were taking the piss or pulling your chain or....

Share this post


Link to post
Share on other sites

I defragged once! :D

 

Regards

Defrag? What's that? :D

 

 

What? Somthing wrong with my explanation? Whats going on?

 

good explination ,he knows what it is just doesn't do it (defrag I mean) very often ,I believe I'm due for my yearly defrag also :lol:

Share this post


Link to post
Share on other sites

I defrag my drives quite frequently (if I don't set a schedule to do it for me), but what I mean is that I don't take note of which files are fragmented and which aren't.

 

I do tend to do drive c: a lot more often than my other drives though and I never use c: for building / burning images.

 

So long as all the pretty little blocks are up one end of the drive I'm happy :)

Share this post


Link to post
Share on other sites

@JasonFriday13

 

You weren't to know mate. Don't worry about Shamus - when he's not drunk, he's drunk. :D

 

Regards

Share this post


Link to post
Share on other sites

Defragging is the remorse you feel after destroying your friend with a hand grenade. So, you go about and pick up his pieces, stitch them back together, using assorted other involuntary donor's parts for those that can't be used/found, and apply Galvanic forces to revive him.

Share this post


Link to post
Share on other sites
Defragging is the remorse you feel after destroying your friend with a hand grenade. So, you go about and pick up his pieces, stitch them back together, using assorted other involuntary donor's parts for those that can't be used/found, and apply Galvanic forces to revive him.

 

This is true. You can use Galvanic Forces for anything these days. As "dbminter" posted, it can be used when after destroying your friend with a hand grenade. Or also when you are constipated. But use it wisely, Galvanic Forces may cause fissures (somewhere) when used while constipated.

Edited by dA CLOwN

Share this post


Link to post
Share on other sites

Galvanic forces also can cause major disruptions in the time line. For instance, when Galvanic forces travelled back to the late 1980's and accidentally changed the past of Megatronic forces. Thus altering the past of said Galvanic forces by preventing those Megatronic forces from reaching its future, which was pivitol in Galvanic's past. :albert:

Share this post


Link to post
Share on other sites
What? Somthing wrong with my explanation? Whats going on?

LOL!! =)) I know what it is. I bought my first computer the same year you were born. :) I gotta ask though, what the hell do you do with your 5 1/4" floppy drive? I haven't used one of those in so long I can barely remember them. I actually cleared out one of my "computer bits" cupboards about a month ago and found hundreds of them full of Soundtracker modules. (Amiga music modules).

Share this post


Link to post
Share on other sites

It actually told me defragging would be a good idea..... which I did. 90 minutes later and the drive looks the same now as it did before. I knew there was a reason I just don't bother anymore. =))

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.