Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there are 20,000 controllers, the startup time exceeds two hours. #4073

Open
2 tasks done
SkyeBeFreeman opened this issue Nov 2, 2023 · 0 comments
Open
2 tasks done

Comments

@SkyeBeFreeman
Copy link

SkyeBeFreeman commented Nov 2, 2023

  • What version of the library are you using? Is it the latest version?

3.0.0

What kind of issue is this?

  • Question. Is this a question about how to do a certain thing?

If there is a model as shown below in the project, and tens of thousands of controllers are associated with this model, the startup time will be several hours.

@ApiModel(description = "Data")
public class Data {
    private transient List<Map<String, String>> mapList;

    public List<Map<String, String>> getMapList() {
        return mapList;
    }

    public void setMapList(List<Map<String, String>> mapList) {
        this.mapList = mapList;
    }
}

Because the context corresponding to each controller will run this logic:
image

And knowNames will be very large. Because every map has unique typeId.

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant