Hi I have a few lines of code that checks if the element is in List
But when List becomes too bigit consumes too much RAM is ther any whay to imrove it so it consumese lesser RAM
List<string> list = File.ReadAllLines(path);
string user = dynamic;
if (list.Contains(user))
{
return "go";
}
else
{
return null;
}