Giter Club home page Giter Club logo

Comments (4)

drakeet avatar drakeet commented on July 29, 2024

It has been fixed, thank you for your help! By the way, the v1.2 has been released, https://github.com/drakeet/MultiType/releases, it is really gratifying! Good night : )

from multitype.

specneeo avatar specneeo commented on July 29, 2024

感谢大神
在Readme文件中,你提到设计为静态或者全局类型,并说到一个应用不会有超级大量的类型定义。但是如果是对于淘宝这样的客户端,我觉得内部的类型定义会非常多,而且不同模块由不同的开发人员来维护,对于这种客户端,几百几千种类型都是很常见的,如果都把类型定义在Application中进行注册,(1)是否有利于方便的维护?,(2)类似淘宝这样的客户端,该如何处理?

from multitype.

drakeet avatar drakeet commented on July 29, 2024

@simidaxu 我还是觉得不会太多,或许对于超级巨量的类型,可能需要支持局部类型池,不过我觉得暂时可以不必考虑,毕竟大部分应用远远说不上巨量。至于你说的统一在 Application 里注册担心堆积太多,可以仿造我的 TimeMachine,它在使用 MultiType 的时候,是在另外一个类中注册类型,所以如果类型太多,可以专门开一个类,通过静态方法和在 Application 静态调用来分解代码。如:

public class TypeRegister {

    public static void init() {
        /* register your types */
        ...
    }
}

然后在 Application 中调用这个方法来初始化。

from multitype.

drakeet avatar drakeet commented on July 29, 2024

@simidaxu 对于全局类型池,我做的性能测试:#15

结论就是,性能极好。

from multitype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.