Skip to content

Conversation

@inemtsev
Copy link
Contributor

@inemtsev inemtsev commented Mar 24, 2025

  • Performance improvements
  • Upgrade Kotlin compiler to latest version

@inemtsev
Copy link
Contributor Author

Looks good. Let's review and merge please :)

@msmith-techempower msmith-techempower merged commit 7c3a5bf into TechEmpower:master Mar 25, 2025
3 checks passed

get("/json") {
call.respondText(Json.encodeToString(Message("Hello, world!")), ContentType.Application.Json)
call.respondText(jsonResponse, ContentType.Application.Json)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey, I was just making some updates for Ktor and I noticed this might be in violation of one of the test rules:

For each request, an object mapping the key message to Hello, World! must be instantiated.

Is this not applicable here, or should I change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bjhham I just checked, you are correct, I missed this rule. We should fix this.

Copy link
Member

Choose a reason for hiding this comment

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

Bah, I'm going too quickly this morning. You are correct - you need to instantiate the object on every request with the json test.

Your plaintext is fine.

Unfortunately, Github won't let me un-merge - can you please open a second PR and resolve?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, I'll open one soon with a few tweaks to response streaming and an update to 3.1.2. as well. Thanks for updating it to 3.0 btw, I had intended to in 2024 but it slipped my mind.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, I really enjoy using Ktor.

I struggled to optimize "/update" endpoint though, maybe you know a better way 😅

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.

3 participants