question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance discussion

See original GitHub issue

Hi, Karl @lppkarl After first research of library i started some more serious development 😃 And first and the biggest problem that I faced now is performance. i just run some code in release configuration

             var buyRule = Rule.Create(c => c.IsEmaBullishCross(3, 7));
            var sellRule = Rule.Create(c => c.IsEmaBearishCross(3, 7));

            var importer = new CsvImporter(setting.CsvPath);
            IReadOnlyList<IOhlcv> candles = await importer.ImportAsync(setting.Symbol);
            _logger.LogInformation($"Readed {candles.Count} of record, start backtest: ", setting);

            var runner = new Builder()
                .Add(candles)
                .Buy(buyRule )
                .Sell(sellRule )
                .Build();

            Result result = await runner.RunAsync(setting.Amount);

Where i have just 1 month of candles for each minute, it is 40 320 candles. And it is executed 15 minutes. Looks like all time was consumed by evaluating rules. Is that something that you expect? Did you plan to use the library for those volumes of data?

I also playing with https://enigmampc.github.io/catalyst/index.html but i don’t like Python 😃 Will comment if i will test the same calculation with Catalyst.

Do you have any thoughts or plans about speedup?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
irperezcommented, Sep 15, 2018

@lppkarl I just added a pull request (#62 ) with some benchmarks. Looks like Dymoi maybe another problem.

0reactions
karlwanclcommented, Sep 15, 2018

@irperez thank you very much for the benchmark, seems dymoi really takes too much time to compute when compared to the others, i’ll take a look of it first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Discussion Points to Cover during Performance ...
7 Discussion Points to Cover during Performance Conversations ; 1. Objectives and SMART Goals ; 2. Personal Development and Career Growth ; 3....
Read more >
How to Conduct a Great Performance Review
The purpose of performance reviews is two-fold: an accurate and actionable evaluation of performance, and then development of that person's ...
Read more >
7 Things That You Must Discuss In Every Performance ...
A performance discusson is an integral part of an organization. It helps in finding potential employees and providing them with the right opportunities...
Read more >
How to Write an Effective Performance Review
Employee performance reviews should cover communication, collaboration, reliability, work quality, problem-solving, and timeliness.
Read more >
3 Ways to Improve Performance Management Conversations
Performance review conversations are a key element of performance management, but they aren't isolated events that only happen at year-end.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found