24.11.2015 09:10, liviuslivius wrote:

> Where can i find this in code?

In cch.cpp:

CCH_fetch() -> CCH_fetch_lock() -> get_buffer() and below
CCH_release() and below

Just FYI, this is how the difference look like in the profiler output:

v2.5.5:

   10,10%  libfbembed.so.2.5.6   get_buffer
    9,23%  libfbembed.so.2.5.6   DPM_next
    9,02%  libfbembed.so.2.5.6   get_record
    7,76%  libfbembed.so.2.5.6   CCH_release
    4,04%  libfbembed.so.2.5.6   latch_bdb
    3,58%  libfbembed.so.2.5.6   CCH_fetch_lock
    2,83%  libfbembed.so.2.5.6   CCH_handoff
    2,49%  libfbembed.so.2.5.6   VIO_next_record
    2,28%  libfbembed.so.2.5.6   lock_buffer

v3.0.0:

   12,10%  libEngine12.so        Firebird::SyncObject::lock
    8,06%  libEngine12.so        Firebird::SyncObject::unlock
    7,08%  libEngine12.so        DPM_next
    5,22%  libEngine12.so        Jrd::BufferDesc::release
    4,38%  libEngine12.so        Jrd::BufferDesc::addRef
    4,11%  libEngine12.so        Firebird::AtomicCounter::exchangeBitOr
    3,48%  libEngine12.so        latch_buffer
    3,45%  libEngine12.so        adjust_scan_count
    3,40%  libEngine12.so        get_buffer
    2,39%  libEngine12.so        CCH_fetch_lock
    2,10%  libEngine12.so        CCH_release

> you know, more heads more concepts

The cache access "concept" has not been changed since 1980s. Only its 
cost has raised recently.


Dmitry


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to