[
https://issues.apache.org/jira/browse/CAMEL-27050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145650#comment-18145650
]
Claus Ibsen commented on CAMEL-27050:
-------------------------------------
PR: https://github.com/apache/camel/pull/30203
_Claude Code on behalf of Claus Ibsen_
> camel-jbang - camel catalog component reads only the first object of each
> component JSON
> ----------------------------------------------------------------------------------------
>
> Key: CAMEL-27050
> URL: https://issues.apache.org/jira/browse/CAMEL-27050
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> {{camel catalog component}} (with or without {{--filter}}) takes about 420
> ms, three times as long as the other short commands (JDK 25, Apple M4 Pro,
> through camel.sh).
> For each of the 422 components it reads the whole model JSON from the catalog
> and parses it into a {{ComponentModel}}: 14 MB of JSON, as the options and
> headers are most of each file. The list shows only the name, title, support
> level, since, description, label, native and Maven coordinates, which are all
> in the first object of the file ({{"component"}}).
> Fix: read each component JSON only up to the end of its {{"component"}}
> object, and build the model from that. The JSON is still read through the
> version manager of the catalog, so it works for other Camel versions and the
> Spring Boot and Quarkus catalogs; a JSON that is not in the catalog or does
> not start with that object is read whole as before. The models of data
> formats, languages and others are small, so they stay as they are.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)