PDA

View Full Version : lua data.psar extractor



dangee
May 4th, 2007, 02:13
just made this lua prog, but is soooooo slow

NE1 NO Y?

e.g. is there optimum block size for copyChunk()

**edit 3/6/7 : much quicker version now at http://www.dcemu.co.uk/vbulletin/showthread.php?t=65186

yaustar
May 4th, 2007, 13:35
You are doing a high number of low level byte operations in a high level scripting language. That's why.

dangee
May 4th, 2007, 14:42
yes, I'd like ability to combine Lua & MIPS for time sensitive code (like c++) thought there may be a way past the sandbox using the pspinside patch engine...

dangee
May 5th, 2007, 23:56
...well i NO hacking luaplayers a tall order.
til then what im looking 4 are methods in lua io to
- move the file pointer to data.psar as 1 op without reading every byte on the way there.
- read or write block of bytes in file by fastest way as possible
Also info on 'r+' & 'b' modes very apreciated (+rep waiting)

**edit 3/6/7 : found a way 2.. http://www.dcemu.co.uk/vbulletin/showthread.php?t=65186 **