I am using the WebSocketSharp
library to have a socket running on an ASP.NET server.
The server-side socket must access a database, thus it returns a collection of items.
Currently, I on the data access layer, methods return List<>
types from the database:
async Task<List<object>> GetListOfItems();
I am wondering if an enumerable implementation would be faster and also cheap in terms of performance.
Also, should they be async
calls aswell?