On Thu, 09 Dec 2010 21:09:36 -0600, Xu, Dongxiao <dongxiao...@intel.com> wrote:

                fp = fopen("/tmp/12321.txt", "w");

fakeroot doesn't intercept or alter fopen(). It'd be better to test something
that is actually affected by fakeroot for a comparison.  :)

fakeroot only traps things like stat and chmod, pseudo traps file system opens
in general.  So I would expect a pretty huge difference in this case.

Keep in mind that pseudo's overhead is all around opens, closes, and things
like stat/chmod; reads and writes are unaffected. Most real-world programs that manipulate files spend a lot more time reading or writing files than opening them, so a huge impact on file open time is relatively small on actual execution
time.

-s
--
Listen, get this. Nobody, with a good compiler, needs to be justified.
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to