数据存储系统,可快速访问GIT

发布于 2025-02-02 23:20:59 字数 520 浏览 1 评论 0原文

我正在开发专门的矢量图形编辑器。

该项目文件存储所有向量形状及其位置。

尽管项目中可能有很多形状,但是当我将所有内容存储在JSON中时,这不是问题。

但是最近,我需要能够向每个图形添加3D模型,通常一个模型对兆字节进行重量,整个项目的重量可以达到100兆字节。

该软件本身不支持编辑3D模型,它们被存储为永远不会更改的二进制数据阵列,用户只能用另一个3D模型将其完全替换。

它只是JSON中带有一系列原始数据的参数,GIT仍然可以很好地处理它。

问题在于软件中,事实是项目文件是一种库,用户不需要一次看到所有内容,他选择一个形状,但是就我而言,我不能只加载一件内存从JSON中,该程序必须处理整个项目文件,然后才能使用户显示所需的形状,并且还可以加载RAM并大大增加操作时间。

您对此有任何建议吗?也许还有其他数据存储系统?

我需要:

  1. 此存储系统可以作为一个文件存在。
  2. git可以使用。
  3. 我不必将整个项目卸载到内存中即可仅显示必要的组件

I am developing a specialized vector graphic editor.

The project file stores all vector shapes and their positions.

Although there may be a lot of shapes in the project, this is not a problem for git when I stored everything in JSON.

But recently I needed the ability to add a 3d model to each figure, usually one model weighs about a megabyte, and the weight of the entire project can reach 100 megabytes.

The software itself does not support editing 3d models, they are stored as a binary data array that will never be changed, the user can only completely replace it with another 3d model.

It's just a parameter in JSON with a string of raw data, the git still handles it well.

The problem is in the software, the fact is that the project file is a kind of library and the user does not need to see everything at once, he selects shapes one by one, but in my case I cannot load only one piece of memory from JSON, the program has to process the entire project file before it will be possible to give the user to display the desired shape, and it also loads RAM and also significantly increases the operating time.

Do you have any advice on this? Perhaps there are other data storage systems?

I need to:

  1. This storage system could exist as a single file.
  2. GIt could work with this.
  3. I didn't have to unload the entire project into memory to display only the necessary component

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文