RAM to ROM
|
09-29-2024, 04:50 AM
Post: #4
|
|||
|
|||
RE: RAM to ROM
It really depends on how you are using the list. If you are iterating over the list element by element anywhere in your program and not solely pushing elements onto the back, it would make sense that the program would slow down as the list size grows, the processor just has to do more work for each subsequent element that you compute.
Moving data from ram to rom, to me, sounds like a bandaid solution to make it faster anyway, to say nothing about the feasibility of it. IMO the real solution is investigating if you can optimize your algorithm. Assuming it is at least O(n) time complexity of course, I can't see your code. The prime may be the fastest calculator, but every processor struggles with nested loops over large lists. If you have just two nested loops, as list size grows linearly compute time could grow quadratically. It can make a huge difference to simplify things like that, if you can. There is a small chance the slowness is an issue caused by the PPL compiler, but I doubt it. You could try porting your code to Python to see if PPL is the problem. Micropython is faster than PPL anyway, plus it's mostly portable to regular CPython. Just a thought. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RAM to ROM - Cold Calculator - 09-27-2024, 08:46 PM
RE: RAM to ROM - glfiedler - 09-28-2024, 11:48 PM
RE: RAM to ROM - Raymond Del Tondo - 09-29-2024, 02:00 AM
RE: RAM to ROM - nbc12 - 09-29-2024 04:50 AM
RE: RAM to ROM - Cold Calculator - 10-04-2024, 01:39 PM
|
User(s) browsing this thread: 1 Guest(s)