简体   繁体   中英

MIT AppInventor: How to handle a large list?

I'm currently working on a MAC Address Lookup Module. I want it to be offline. I have a large amount of text (OUI Database, each item in a new line) and I want to perform a search in it. However, I can't find a way to import it into a variable. Things that I've tried:

  • Handle the whole database as a file and read it (The app hangs on or I run out of RAM)
  • Set a list variable internally to the comma-separated version of the database (The app freezes)

Any ideas?

Looking at Bloom filters might give you some ideas on how to rework your problem. This is a space-efficient data structure and can tell you if something is definitely not part of something and if something probably is in it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM