langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.43k stars 4.22k forks source link

fix: Ensure chat inputs with dependencies are not prioritized in graph sorting #4666

Closed ogabrielluiz closed 6 days ago

ogabrielluiz commented 6 days ago

This pull request modifies the sorting logic for chat inputs in the graph. It ensures that chat inputs with dependencies are not moved to the first layer, maintaining their original order when dependencies exist. This change improves the handling of chat inputs in the graph structure.

Fixes #4660

codspeed-hq[bot] commented 6 days ago

CodSpeed Performance Report

Merging #4666 will improve performances by 32.03%

Comparing fix-chatinput-sorting (79c98fa) with main (a86a7a2)

Summary

⚡ 2 improvements ✅ 13 untouched benchmarks

Benchmarks breakdown

Benchmark main fix-chatinput-sorting Change
test_successful_run_with_output_type_any 288.5 ms 218.5 ms +32.03%
test_successful_run_with_output_type_debug 216.6 ms 174.9 ms +23.86%