BurntSushi / go-sumtype

A simple utility for running exhaustiveness checks on Go "sum types."

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

on a large codebase, go-sumtype blows the file descriptor limit

BurntSushi opened this issue · comments

This happens when the file descriptor limit is 256, but is fixed by increasing that limit to 1024. Still, 256 open files seems excessive.

go-sumtype itself never opens any file descriptors, instead delegating that work to the loader package. We should confirm the bug is there and then either try to fix it or file a bug with loader.

Wasn't this fixed back in 2017 by PR #6 ?