# Bug Report Profiling shows that the read methods are spending most of their time querying `task.in_stream.channels_to_read`. https://github.com/ni/nidaqmx-python/pull/842/files#r2380592910 ## Repro or Code Sample Run benchmarks from https://github.com/ni/nidaqmx-python/pull/842 ## Expected Behavior Most of the time is spent in generated\nidaqmx\_library_interpreter.py:4205(read_analog_f64) ## Current Behavior Most of the time is spent in nidaqmx\task\_in_stream.py:158(channels_to_read) ## Possible Solution Use `task.in_stream.num_chans` ## Context Reviewing https://github.com/ni/nidaqmx-python/pull/842 ## Your Environment * Operating system and version: Windows 10 * NI-DAQmx version: 2025 Q3 * `nidaqmx-python` version: https://github.com/ni/nidaqmx-python/pull/842 * Python version: 3.11.9 [AB#3330619](https://dev.azure.com/ni/94b22d7b-ad7b-4f5e-88f0-867910f91c94/_workitems/edit/3330619)