History log of /haiku/src/add-ons/kernel/file_cache/launch_speedup.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 756ce47e 12-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

launch_speedup: convert to BOpenHashTable.


# 4535495d 10-Jan-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged the signals branch into trunk, with these changes:
* The team and thread kernel structures have been renamed to Team and Thread
respectively and moved into the new BKernel namespace.
* Several (kernel add-on) sources have been converted from C to C++ since
private kernel headers are included that are no longer C compatible.

Changes after merging:
* Fixed gcc 2 build (warnings mainly in the scary firewire bus manager).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33d17f74 14-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Added some temporary debug code to measure the boot time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51c99056 16-Jul-2008 Michael Lotz <mmlr@mlotz.ch>

Make the launch_speedup module compile again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26467 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0f5179a 28-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed recursive_lock to use a mutex instead of a semaphore.
* Adjusted code using recursive locks respectively. The initialization
cannot fail anymore, and it is possible to use recursive locks in the
early boot process (even uninitialized, if in BSS), which simplifies
things a little.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25687 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9962d68b 09-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now cleanly frees all resources when removed from the cache.
Also removes team listeners when the session is deleted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eeed33b6 05-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now reads in all saved previous sessions, and also prefetches main (named) sessions
like the boot process. Prefetching standard apps does not work yet.
Note, since it always just caches the whole file regardless of what part of it had
been read (missing stuff here, and in the file cache), and since our I/O scheduler
doesn't do anything yet, it might end up slower than just reading the stuff one by
one.
Also, it currently let the triggering app/session wait while it's prefetching the
data. So although it is working, it doesn't work great at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13905 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 59165b85 04-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now writes its findings to disk, and filters out tiny apps by some made up heuristic.
Still doesn't do anything of use.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 677abc79 03-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Started a cache module that is supposed to speed up application
launching and the boot process.
Doesn't do much yet beyond collecting data, though. Anyway, this
is a test, it might not end up in the distribution.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13893 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 756ce47ea9c490d3c7e56f66fde80bed7c4fd548 12-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

launch_speedup: convert to BOpenHashTable.


# 4535495d80c86e19e2610e7444a4fcefe3e0f8e6 10-Jan-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged the signals branch into trunk, with these changes:
* The team and thread kernel structures have been renamed to Team and Thread
respectively and moved into the new BKernel namespace.
* Several (kernel add-on) sources have been converted from C to C++ since
private kernel headers are included that are no longer C compatible.

Changes after merging:
* Fixed gcc 2 build (warnings mainly in the scary firewire bus manager).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33d17f74e01b91b76362880ddaf4cfc3d2a04c19 14-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Added some temporary debug code to measure the boot time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51c99056b56f8212f0a652aa11140bee551c6653 16-Jul-2008 Michael Lotz <mmlr@mlotz.ch>

Make the launch_speedup module compile again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26467 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0f5179aa51eb680cdeea656a8b11fdbc6b56d63 28-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed recursive_lock to use a mutex instead of a semaphore.
* Adjusted code using recursive locks respectively. The initialization
cannot fail anymore, and it is possible to use recursive locks in the
early boot process (even uninitialized, if in BSS), which simplifies
things a little.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25687 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9962d68b546cff924336434b14180743086bc2bb 09-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now cleanly frees all resources when removed from the cache.
Also removes team listeners when the session is deleted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eeed33b66c06b02d154ec329b490c00890965f0c 05-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now reads in all saved previous sessions, and also prefetches main (named) sessions
like the boot process. Prefetching standard apps does not work yet.
Note, since it always just caches the whole file regardless of what part of it had
been read (missing stuff here, and in the file cache), and since our I/O scheduler
doesn't do anything yet, it might end up slower than just reading the stuff one by
one.
Also, it currently let the triggering app/session wait while it's prefetching the
data. So although it is working, it doesn't work great at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13905 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 59165b8548b2a30fca7771e795af871429ce6fe9 04-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Now writes its findings to disk, and filters out tiny apps by some made up heuristic.
Still doesn't do anything of use.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 677abc798a96f05c833746f6524d1d7685d23367 03-Aug-2005 Axel Dörfler <axeld@pinc-software.de>

Started a cache module that is supposed to speed up application
launching and the boot process.
Doesn't do much yet beyond collecting data, though. Anyway, this
is a test, it might not end up in the distribution.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13893 a95241bf-73f2-0310-859d-f6bbb57e9c96