# Optimization

### Optimized for Excellence

At Hera, we are committed to pushing the boundaries of what's possible, continuously optimizing our systems to provide unmatched efficiency and performance in the DeFi.

> Maximizing Efficiency, Minimizing Costs!

![](/files/YUz8VQ9eskOltugSvJEW)

### **Features**

#### Assembly Coding

We've employed assembly coding for router, executor, manager, and adapter contracts to ensure unparalleled efficiency. By utilizing low-level code, we streamline data transfer, fetching, and calldata creation processes.

#### Direct Data Access

When processing a token LP into the database, we access only the necessary data, eliminating redundant queries and excessive call data. This approach targets maximum speed and minimum data bytes.

#### Offchain Optimization

Offchain data prepared for onchain execution is created entirely in low-level code, minimizing byte size. This ensures that routing involves no unnecessary data, resulting in lower transaction gas costs.

#### Seamless Integration

Our optimization strategies are designed to provide a seamless and efficient experience, both on-chain and off-chain, ensuring optimal performance for all operations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hera.finance/features/ai-powered-pathfinder-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
