Unnecessary header allocations
jeroenrinzema opened this issue · comments
Currently are the references header values not tracked inside the header manager. This causes that if a service is returning additional header values unnecessary memory allocations are made.
flow "greeter" {
input "query" {
header = ["Authorization"]
}
resource "io" {
request "Say" "Hello" {
header {
Authorization = "{{ input.header:Authorization }}"
}
}
}
output "result" {
header {
Timestamp = "{{ io.header:Timestamp }}"
}
}
}
Header references should be tracked to avoid unnecessary allocations.
These values are stored inside the metadata manager which could be found here.