Python Forum
Efficient way of iterating a list of records
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Efficient way of iterating a list of records
#3
(Feb-18-2019, 11:48 AM)scidam Wrote: In case of traditional computational environment built on top of Python (numpy+pandas+python), that would be a quite simple problem. NumPy is implemented in C and aimed at computationally efficient workflow with arrays in Python.
But it is not clear, would it possible to install NumPy on your GPS module?!
You will likely need to implement Haversine distance using NumPy to get
numpy-vectorized form of the distance function.

Sadly I think the answer is no Sad That's the trouble with embedded implementations; they often contain a pretty basic or stripped down
interpreter. I'm aware of the Haversine calculation thanks, and fortunately trig functions are supported although in this case I'm after relative comparisons rather than absolute distances so I'm hoping I can work with lat/long values directly (happy to be corrected though!)

So it's back to manually trawling through the records and the best way to do it...
Reply


Messages In This Thread
RE: Efficient way of iterating a list of records - by anguis - Feb-18-2019, 12:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A more efficient code titanif 2 523 Oct-17-2023, 02:07 PM
Last Post: deanhystad
  Cleaning my code to make it more efficient BSDevo 13 1,526 Sep-27-2023, 10:39 PM
Last Post: BSDevo
  Making a function more efficient CatorCanulis 9 1,971 Oct-06-2022, 07:47 AM
Last Post: DPaul
  Delete list while iterating shantanu97 1 1,924 Jun-06-2021, 11:59 AM
Last Post: Yoriz
  I there a more efficient way of printing ? Capitaine_Flam 7 3,609 Dec-01-2020, 10:37 AM
Last Post: buran
  Creating a list of dictionaries while iterating pythonnewbie138 6 3,357 Sep-27-2020, 08:23 PM
Last Post: pythonnewbie138
  python3: iterating through list not working wardancer84 3 2,407 Jul-08-2020, 04:30 PM
Last Post: DPaul
  Indexing problem while iterating list and subtracting lbtdne 2 2,172 May-14-2020, 10:19 PM
Last Post: deanhystad
  A more efficient way of comparing two images in a python vukan 0 2,052 Mar-17-2020, 11:39 AM
Last Post: vukan
  how to make iterative search more efficient renergy 2 2,297 Jan-03-2020, 03:43 PM
Last Post: stullis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020