简体   繁体   English

MIT AppInventor:如何处理大列表?

[英]MIT AppInventor: How to handle a large list?

I'm currently working on a MAC Address Lookup Module. 我目前正在研究MAC地址查找模块。 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. 我有大量文本(OUI数据库,新行中的每个项目),我想在其中进行搜索。 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) 将整个数据库作为文件处理并读取(应用程序挂起,或者我用完了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. 查看Bloom过滤器可能会给您一些有关如何解决问题的想法。 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. 这是一种节省空间的数据结构,可以告诉您某些内容是否绝对不属于某些内容,以及其中是否可能包含某些内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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