Slashdot Mirror


User: ryfar

ryfar's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Spotlight shouldn't affect battery life on Spotlight's Impact on PowerBook Battery Life? · · Score: 1

    When Spotlight indexes a volume for the first time, it has to index every file for that volume, and that can certainly take up a lot of energy. However, once the volume has been indexed, Spotlight doesn't have to do any more explicit indexing of files. Instead, files are run through the appropriate metadata importer every time it is written, and the metadata that is imported from the given file is added to Spotlight's internal database. This should really be a method that uses almost no battery life beyond what gets used for the file writing activity, since there is virtually no overhead and no background indexing, as with other search solutions.

    Of course, one way to try to get some idea of any extra battery drain caused by Spotlight would be to determine how long the battery lasts with Spotlight turned on vs. turned off (using the mdutil command). However, you should be aware that if you run without Spotlight turned on for a while, it will need to explicitly index every file that was altered while Spotlight indexing was turned off, so you don't want to use that extra indexing time as part of your test run with indexing turned on. Any way you slice it, trying to get performance figures for indexing vs. non-indexing would be a pretty inaccurate process, and the only results that could be taken seriously would be if there were a gross difference between the two; any minor battery life differences would really have to be attributed to difference in user activity.

  2. Re:Javascript! on Lightweight Scripting/Extension Languages? · · Score: 1

    A small company called Nombas also makes a Javascript/ECMAScript interpreter that's specially set up to be embedded in other applications. They have a pretty easy to comprehend API and lots of documentation. It's not free to license it, but it's not expensive either, and once you've licensed it you get good technical support, upgrades, etc. The product is called ScriptEase ISDK. Check it out at http://www.nombas.com. Full Disclosure: I used to be a developer there. But I don't anymore and I still love the product.