Skip to content

Conversation

@kwsantiago
Copy link

Closes #17329

Split common/chat.cpp into two files to improve compile times for contributors working on chat template support.

Comment on lines +9 to +10
#include <minja/chat-template.hpp>
#include <minja/minja.hpp>
Copy link
Collaborator

@ngxson ngxson Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this solution resolve the main concern here:

This won't reduce the total compile time, but will provide a better DX, as most of the time whenever there is a new model that need to be supported, contributors need to modify code in common_chat_parse_*

As long as we still include these headers, compilation time will still be long.

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

Successfully merging this pull request may close these issues.

Refactor: reduce compile time of common/chat.cpp

2 participants