From my perspective, having a selectpicker with 1000 elements can be quite problematic as it makes it challenging to locate and choose a specific option (resulting in poor UX). In my opinion, the number of select-options should ideally be limited to around ten, depending on the particular use-case. While I'm not very familiar with the bootstrap-select library, I would assume that both the library and the select-tag are not optimized to handle such a large number of options, requiring more memory for loading.
If you require a numerical input, I would suggest utilizing an input field with the type number instead.
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dbb9b4b4afa8afa9baab9beef5e9f5ebf6b9beafbaea">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- Input -->
<input type="number" class="form-control" min="0" max="1000" step="1" value="0">
If your input may contain more than just numbers, another approach could be implementing a live-search functionality where users can enter text and only matching items are displayed in a dropdown.