从/到Dictionary(Of String,SomeReferenceType)读取/添加值的性能如何取决于已输入的记录数?我的意思是,当n变大时,O(1),O(log n),O(n)或其他方式的时间会增加吗?
Dim index As New Dictionary(Of String, SomeReferenceType)
' N entries added in a loop
' ...
Dim id As Integer = 123456789 ' 9-digit number
Dim key As String = id.ToString()
Dim value As New SomeReferenceType
index(key) = value ' Need to estimate this
value = index.TryGetValue(key) ' and this operations depending on N (for large N)
Run Code Online (Sandbox Code Playgroud)
此外,如果缺乏记忆会发生什么?我们应该在输入元素之前设置字典的容量,以避免在没有足够的内存空间的情况下复制它吗?这个操作需要多长时间(如果需要,将字典复制到新的地方)取决于N?
第三方的webcontrol生成以下代码以显示自身:
<div id="uwg">
<input type="checkbox" />
<div>blah-blah-blah</div>
<input type="checkbox" />
</div>
Run Code Online (Sandbox Code Playgroud)
是否可以将其更改为
<div id="uwg">
<input type="checkbox" disabled checked />
<div>blah-blah-blah</div>
<input type="checkbox" disabled checked />
</div>
Run Code Online (Sandbox Code Playgroud)
当我们点击
<asp:CheckBox id="chk_CheckAll" runat="server" AutoPostBack="true" />
Run Code Online (Sandbox Code Playgroud)
位于同一页面?
我们需要在服务器端(在ASP.NET中)执行此操作.
第三方的控件没有为此提供接口,因此唯一的可能性是使用html输出.我应该处理哪个页面事件(如果有的话)?还有,是否有一些等同于DOM模型,或者我需要使用输出作为字符串?
当我们在版本控制系统(例如TFS)中注册代码时,我们需要开发用于编写注释的指南.
例如,当我们提交错误修正时,我们会创建一个注释"修复错误#..."
我们试图就这一主题进行头脑风暴,但大多数想法带来的附加值太少.
我将不胜感激任何建议.
.net ×1
asp.net ×1
caching ×1
changeset ×1
dictionary ×1
html ×1
performance ×1
rendering ×1
tfs ×1
vb.net ×1