<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fzf/src/cache.go, branch v0.66.0-custom</title>
<subtitle>Personal fork of fzf</subtitle>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/'/>
<entry>
<title>Less aggressive chunk cache invalidation for --tail</title>
<updated>2024-06-10T11:33:55+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2024-06-10T11:30:19+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=7fc13c5cfde55ae53c6f87290a80559fcc59bf0f'/>
<id>7fc13c5cfde55ae53c6f87290a80559fcc59bf0f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor the code so that fzf can be used as a library (#3769)</title>
<updated>2024-05-06T16:06:42+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2024-05-06T16:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=e8405f40fe2eb3675f1cb4f69e825eff5f13f269'/>
<id>e8405f40fe2eb3675f1cb4f69e825eff5f13f269</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate Result and rank structs</title>
<updated>2017-07-17T18:14:33+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2017-07-17T18:10:49+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=bbe10f4f7745000c121b629ff68e81bba5a497f6'/>
<id>bbe10f4f7745000c121b629ff68e81bba5a497f6</id>
<content type='text'>
By not storing item index twice, we can cut down the size of Result
struct and now it makes more sense to store and pass Results by values.
Benchmarks show no degradation of performance by additional pointer
indirection for looking up index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By not storing item index twice, we can cut down the size of Result
struct and now it makes more sense to store and pass Results by values.
Benchmarks show no degradation of performance by additional pointer
indirection for looking up index.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce memory footprint of Item struct</title>
<updated>2017-07-16T14:34:32+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2017-07-16T14:31:19+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=9e85cba0d06025983a1a747bfc06c9955388d9c0'/>
<id>9e85cba0d06025983a1a747bfc06c9955388d9c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor cache lookup</title>
<updated>2017-07-16T14:34:32+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2017-07-15T10:35:27+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=8dbdd557302a282ff01dc1a89c4e5c28676bf72e'/>
<id>8dbdd557302a282ff01dc1a89c4e5c28676bf72e</id>
<content type='text'>
- Remove multiple mutex locks in partial cache lookup
- Simplify return values
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Remove multiple mutex locks in partial cache lookup
- Simplify return values
</pre>
</div>
</content>
</entry>
<entry>
<title>Micro-optimizations</title>
<updated>2016-08-18T17:39:32+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2016-08-18T17:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=37dc273148df0893053bf5cda0582a23f5c2b2d2'/>
<id>37dc273148df0893053bf5cda0582a23f5c2b2d2</id>
<content type='text'>
- Make structs smaller
- Introduce Result struct and use it to represent matched items instead of
  reusing Item struct for that purpose
- Avoid unnecessary memory allocation
- Avoid growing slice from the initial capacity
- Code cleanup
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Make structs smaller
- Introduce Result struct and use it to represent matched items instead of
  reusing Item struct for that purpose
- Avoid unnecessary memory allocation
- Avoid growing slice from the initial capacity
- Code cleanup
</pre>
</div>
</content>
</entry>
<entry>
<title>Improvements in performance and memory usage</title>
<updated>2015-04-17T13:23:52+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2015-04-17T13:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=2fe1e28220c543ddbf4e12ee7396e44ee85ad8e0'/>
<id>2fe1e28220c543ddbf4e12ee7396e44ee85ad8e0</id>
<content type='text'>
I profiled fzf and it turned out that it was spending significant amount
of time repeatedly converting character arrays into Unicode codepoints.
This commit greatly improves search performance after the initial scan
by memoizing the converted results.

This commit also addresses the problem of unbounded memory usage of fzf.
fzf is a short-lived process that usually processes small input, so it
was implemented to cache the intermediate results very aggressively with
no notion of cache expiration/eviction. I still think a proper
implementation of caching scheme is definitely an overkill. Instead this
commit introduces limits to the maximum size (or minimum selectivity) of
the intermediate results that can be cached.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I profiled fzf and it turned out that it was spending significant amount
of time repeatedly converting character arrays into Unicode codepoints.
This commit greatly improves search performance after the initial scan
by memoizing the converted results.

This commit also addresses the problem of unbounded memory usage of fzf.
fzf is a short-lived process that usually processes small input, so it
was implemented to cache the intermediate results very aggressively with
no notion of cache expiration/eviction. I still think a proper
implementation of caching scheme is definitely an overkill. Instead this
commit introduces limits to the maximum size (or minimum selectivity) of
the intermediate results that can be cached.
</pre>
</div>
</content>
</entry>
<entry>
<title>Lint</title>
<updated>2015-01-11T18:18:40+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2015-01-11T18:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=7a2bc2cada971c7a390d09b0afda34780ff56fb6'/>
<id>7a2bc2cada971c7a390d09b0afda34780ff56fb6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rewrite fzf in Go</title>
<updated>2015-01-03T15:37:29+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2015-01-01T19:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=f3177305d5572b26f135fc045481358b4eb1bf69'/>
<id>f3177305d5572b26f135fc045481358b4eb1bf69</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
