On Mon, Apr 15, 2019 at 03:10:31PM +0300, Aamer Abbas wrote:
> Stefano, does it already do caching? Where is the pickle cache stored? I
> see __pycache__ files in my importer folders, but not anywhere else. Sorry,
> I have not really done much python in the past, so I am probably asking a
> dumb question.

Not dump at all, especially because it's not entirely trivial to
reproduce :-) If you have a foo.beancount file, Beancount will use a
.foo.beancount.picklecache cache file, but *only* if loading the textual
file took more than 1 second. See:

  
https://bitbucket.org/blais/beancount/src/fa1edde3bcd02a277fac193f460a39c9a1461161/beancount/loader.py?at=default&fileviewer=file-view-default#loader.py-53

Hence it will probably not create the cache file in artificial examples
like running bean-check on the output of bean-example. But it will use
cache files in any real-life scenario with a significant number of
transactions.

Hope this helps,
Cheers
-- 
Stefano Zacchiroli . [email protected] . upsilon.cc/zack . . o . . . o . o
Computer Science Professor . CTO Software Heritage . . . . . o . . . o o
Former Debian Project Leader & OSI Board Director  . . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20190415122528.gxeqgrgcsiimcgog%40upsilon.cc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to