The present disclosure relates to a diffusion and/or filtration device, such as a dialyzer, hemofilter, or ultra-filter, having improved flow characteristics. The invention also relates to an end cap for the device.