[Scummvm-devel] ...to be or not to be?

Max Horn max at quendi.de
Sun Feb 22 05:42:02 CET 2009


Am 21.02.2009 um 20:24 schrieb sunmax at libero.it:

> Hi there!
>
> Why is the existence of every resource checked 4 times, before
> eventually opening it?
>
> FIO: dopen(mass:) => 4
> FIO: dclose(4) => 0
> Ps2FilesystemNode::exists: "mass:scummvm/indy4/monster.sog":   yes  
> [stat]
> Ps2FilesystemNode::exists: "mass:scummvm/indy4/monster.sog":   yes  
> [stat]
> Ps2FilesystemNode::exists: "mass:scummvm/indy4/monster.sog":   yes  
> [stat]
> Ps2FilesystemNode::exists: "mass:scummvm/indy4/monster.sog":   yes  
> [stat]
> Ps2FilesystemNode::openForReading (a)
> fopen(mass:scummvm/indy4/monster.sog, rb)
> open mass:scummvm/indy4/monster.sog [4]
>
> I stay tuned for an optimized ontological solution ;-)

I changed it on trunk (but not on the 0.13 branch, and that's  
intentional) to only require 2.

As it is, our code relies on FSNode::exists() to be a fast operation.  
Is this a problem for your port? You don't really state that, though.



Bye,
Max




More information about the Scummvm-devel mailing list