Usually yes, a 32 bit integer will perform slightly better because it is already properly aligned for native CPU instructions. You should only use a smaller sized numeric type when you actually need to store something of that size.
More Related Contents:
- Read data from SqlDataReader
- How to write a simple Html.DropDownListFor()?
- converting a base 64 string to an image and saving it
- When should I use Async Controllers in ASP.NET MVC?
- Using static variables instead of Application state in ASP.NET
- Why AppDomain.CurrentDomain.BaseDirectory not contains “bin” in asp.net app?
- Pattern for calling WCF service using async/await
- Web.Config Debug/Release
- How to Avoid Response.End() “Thread was being aborted” Exception during the Excel file download
- Mock static property with moq
- Get text/value from textbox after value/text changed server side
- ASP.Net MVC route to catch all *.aspx requests
- Asp.net core Identity successful login redirecting back to login page
- Stop SQL query execution from .net Code
- Queuing in OneWay WCF Messages using Windows Service and SQL Server
- GridView bound with Properties of nested class
- Why is my ClaimsIdentity IsAuthenticated always false (for web api Authorize filter)?
- Date vs DateTime
- How can I trigger/refresh my main .RAZOR page from all of its sub-components within that main .RAZOR page when an API call is complete?
- How to write a transaction to cover Moving a file and Inserting record in database?
- How to Get the HTTP Post data in C#?
- ASP.NET C# Static Variables are global?
- The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘
- Value cannot be null. Parameter name: items (in Dropdown List) ASP.NET MVC5
- {version} wildcard in MVC4 Bundle
- Built-in helper to parse User.Identity.Name into Domain\Username
- Are static variables thread-safe? C#
- Multiple signalR connections/hubs on your website
- Can I reuse HttpWebRequest without disconnecting from the server?
- What are some alternatives to ReSharper? [closed]