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.

`ManyToOneReplacer` slow for small expressions

See original GitHub issue

I have added ~1700 ReplacementRules in ManyToOneReplacer. The .replace() has become very slow even for very small expressions(like 2*x).

File: https://github.com/parsoyaarihant/sympy/blob/502fd311d64155560383a5f4f3b2710c318dc410/sympy/integrals/rubi/patterns.py

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:38 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wheerdcommented, Aug 20, 2017

I have run into a couple of bugs in the code generation while testing the new rubi rules. I will let you know once I get them fixed.

1reaction
wheerdcommented, Aug 2, 2017

An option could be to use tuples with different lengths and just leave the optional out if it is None.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Data JPA Is Too Slow - java - Stack Overflow
Let's merge the statistics so they can be easily compared. Old rows are prefixed with o , new ones with n .
Read more >
Very slow getMany() entity mapping (not caused by SQL query ...
Steps to reproduce or a small repository showing the problem: We are getting very slow performance on getMany() when the number of records...
Read more >
Algebra e-Book - Functions - MathOnWeb.com
One complication with a many-to-one function is that it can't have an inverse function. ... Just as we can substitute an expression into...
Read more >
Hibernate ORM 5.4.33.Final User Guide - Red Hat on GitHub
Indeed, Hibernate assumes very little about the nature of your persistent objects. You can express a domain model in other ways (using trees...
Read more >
Receive Data from Multiple ESP32 Boards (many-to-one)
Every board can be a sender or receiver. However, to keep things clear we'll use the terms “sender” and “receiver” or “master” and...
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