Enhance ASP Application Performance by Using Early Binding in VB

Enhance ASP Application Performance by Using Early Binding in VB

When using VBScript in ASP, you have only one data type: VARIANT. Although you can store objects within this data type, every time you refer to a property/method of the object, the references need to be resolved (this involves getting the DispID of the member using the GetIDsOfNames method of object’s IDispatch interface). This is much slower than the early binding that you can use in VB. In early binding, the references are resolved at compile time rather than run time, which saves the extra step of execution.

When working with objects in ASP, try to encapsulate the functionality involving these objects into COM components developed in VB. For example, you can encapsulate all database activities (that use lot of ADO objects) and their business rules into middle tier COM components. This keeps the ASP code clean and maintainable, and also allows you to take advantage of early binding performance gains. Also, this design helps make your ASP application more scalable.

NOTE: When declaring objects in VB, use the following method to achieve early binding:

 Dim objRs as ADODB.Recordsetset objRs = New ADODB.Recordset
Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes