# Performance annotations

**URL:** <https://forums.swift.org/t/performance-annotations/54441>\
**Category:** Pitches\
**Created:** [January 5, 2022, 6:55am UTC](https://forums.swift.org/t/performance-annotations/54441 "2022-01-05T06:55:57Z")\
**Posts on this page:** 1\
**Showing post:** 65

<div class="post-metadata">

**Author:** ![ksluder](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@ksluder](https://forums.swift.org/u/ksluder)\
**Post date:** [January 13, 2022, 10:08pm UTC](https://forums.swift.org/t/performance-annotations/54441/65 "2022-01-13T22:08:38Z")

</div>

> [@tera](#):
>
> I guess something like
> 
> ```swift
> __attribute__ ((noLocks)) void memmove(void*, const void*, size_t)
> 
> ```

The existing syntax for this is ` __attribute__ ((swift_attr("@noLocks")))`. You can of course wrap that in a preprocessor macro that’s only defined when the `SWIFT` preprocessor macro is defined.

---

_[View the full topic](https://forums.swift.org/t/performance-annotations/54441)._
