What are the advantages and disadvantages of making an application for a patent for invention public in advance?

Do not disclose the advantages in advance: extend the patent confidentiality period and strive to seize the market.

Advantages of early publicity: speeding up authorization, charging patent license fees, and some projects can be used as indicators.

There are many reference factors for whether to disclose in advance, which can only be analyzed in detail, but there is a general principle for reference:

Those who gather indicators, apply for projects, and apply for funds, and find that these situations are imitated by opponents, are suitable for publicity in advance, otherwise the situation needs further judgment.