New geo files are not optimized #4398
Replies: 1 comment 1 reply
-
Good afternoon, dear members of our community! Specifically, we know for certain that in the current versions of iOS, we have the following memory limitations:
In our case, Xray is a network process limited to 50MB. It reads geo files and then operates with the read content. Unfortunately, with the current implementation of geofiles in our core, where all categories are in one large file, we often encounter the inability to even simply start the tunnel on an Apple device. A simple example (Loyalsoldier geosite): This also applies to geo files with CIDR (Loyalsoldier geoip) @RPRX , considering the memory constraints, perhaps we should explore refactoring the geofile handling code. We could draw inspiration from neighboring teams and implement a system that utilizes multiple smaller files instead of one monolithic file. This approach could effectively resolve the memory issues on Apple devices. What you think about this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good afternoon, developers.
The new geo files you’ve added contain a lot of unnecessary information, and sometimes it doesn't match the appropriate categories. This results in increased memory usage. iOS, for example, does not allow using more than 50MB of memory. This leads to either XRay running slowly (at the peak of allowed memory) or the app being terminated by the system due to exceeding resource limits.
https://youtu.be/07O_7_9Ic_E
Beta Was this translation helpful? Give feedback.
All reactions