---
# System prepended metadata

title: Modifying AGE to improve performance

---

# Modifying AGE to improve performance

# Objective:

To achieve a significant enhancement in performance, it is essential to implement a series of functions that has previously implemented in AGE. These actions can include optimising of the functions that can be optimised in any fashion. By focusing on these areas, we aim to effectively boost efficiency and productivity, resulting in remarkable improvement in overall performance.

# Abstract:

The main goal and purpose of undertaking this project is to make modifications and enhancements to the existing functions that begin with the prefix `age_`. One crucial aspect to focus on during this process is to thoroughly evaluate and determine if these functions should indeed return `NULL` values when `NULL` parameters are provided as inputs. It is imperative to ensure that the appropriate checks and evaluations are put in place to handle such scenarios effectively and accurately. By thoroughly reviewing and revising these functions, we can enhance their performance that will improve overall performance of the system, ultimately leading to a more robust and reliable system.

# Tasks:

- [ ]  Start by identifying functions that begin with the prefix `age_` in the file `agetype.c`. These functions are important for our analysis.
- [ ]  Once you have identified the functions, create a list of them to keep track.
- [ ]  Next, check if any of the input variables in these functions do not allow NULL values. This is an important consideration for the reliability of our code.
- [ ]  In the event that NULL values are allowed, we need to assess if it is possible for the functions to return NULL as well. This is crucial for handling potential errors and ensuring the robustness of our program.
- [ ]  Finally, make the necessary modifications to the functions to ensure that they can return NULL if any of the input variables are NULL. This will enhance the flexibility and error handling capabilities of our code.