This is a very small and very promising patch, but we would need to include the JNA library. The JNA library allows us to conveniently call native APIs without JNI code. We could use this for not only what this patch does - set background mode to significantly reduce system impact of our on-startup disk I/O - but also for setting thread priorities on unix, for which we currently have a native JNI library. And there may well be other things we'd like to call native libraries for too.
Also its platform detection code might well replace our existing code in that area - or at least some of it. The catch is the library is 900KB, and the platform library (which I think just has some standard convenience functions) is 700KB. So we might be looking at increasing the download by 1.6MB. Thoughts? I'm in favour but not totally convinced... The original pull request (more info in attached messages): https://github.com/freenet/fred-staging/pull/29 -------------- next part -------------- An embedded message was scrubbed... From: CAFxX <reply+i-798658-473667fdb4aaaa383f1c75e6e8671360385c7...@reply.github.com> Subject: Re: [GitHub] Have fred execute in background mode (reduced I/O priority) on windows NT [freenet/fred-staging GH-29] Date: Thu, 21 Apr 2011 14:39:55 -0700 Size: 2181 URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20110423/1d765f9a/attachment.mht> -------------- next part -------------- An embedded message was scrubbed... From: CAFxX <reply+i-798658-473667fdb4aaaa383f1c75e6e8671360385c7...@reply.github.com> Subject: Re: [GitHub] Have fred execute in background mode (reduced I/O priority) on windows NT [freenet/fred-staging GH-29] Date: Thu, 21 Apr 2011 14:42:51 -0700 Size: 1856 URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20110423/1d765f9a/attachment-0001.mht> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20110423/1d765f9a/attachment.pgp>
